package com.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("t_orders")
public class Orders {
    private Integer id;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addTime;
    private Integer orderNo;
    private String tableName;
    private Integer userId;
    private Integer productId;
    private String productName;
    private String imagePath;
    private Integer quantity;
    private Double unitPrice;
    private Double totalAmount;
    private boolean paymentType;
    private String status;
    private String address;
    private String phone;
    private String consignee;
    private String logisticsInfo;
    private String remark;
    private String merchantName;
    private boolean isApproved;
    private String approvalRemark;
    private String userRole;


}
